body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th, 
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    background-color: #f2f2f2;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.chart-container {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: white;
}

/* 故障相机相关样式 */
tr.has-faulty {
    background-color: #fff8f8;
}

tr.has-faulty:hover {
    background-color: #ffebeb;
}

.faulty-count {
    color: #f44336;
    font-weight: bold;
}

.faulty-cameras {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.faulty-camera {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f44336;
    color: white;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.no-faulty {
    color: #4CAF50;
    font-weight: bold;
}
